Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(chain,wallet)!: Transitive ChainPosition #1733

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

evanlinjin
Copy link
Member

@evanlinjin evanlinjin commented Nov 19, 2024

Description

Change ChainPosition to be able to represent transitive anchors and unconfirm-without-last-seen values.

As mentioned in #1670 (comment), we want this merged first so that we have minimal changes to the API after 1670 is merged.

Changelog notice

  • Change ChainPosition so that it is able to represent transitive anchors and unconfirmed-without-last-seen values.

Checklists

All Submissions:

  • I've signed all my commits
  • I followed the contribution guidelines
  • I ran cargo fmt and cargo clippy before committing

New Features:

* [ ] I've added tests for the new feature

  • I've added docs for the new feature

@notmandatory notmandatory added module-blockchain api A breaking API change labels Nov 20, 2024
@notmandatory notmandatory added this to the 1.0.0-beta milestone Nov 20, 2024
@evanlinjin evanlinjin force-pushed the feature/transitive_chain_position branch from 374097d to 1fb4428 Compare November 22, 2024 03:43
@evanlinjin evanlinjin marked this pull request as ready for review November 25, 2024 23:47
Change `ChainPosition` to be able to represent transitive anchors and
unconfirm-without-last-seen values.
@evanlinjin evanlinjin force-pushed the feature/transitive_chain_position branch from 1fb4428 to 368fed3 Compare November 26, 2024 00:03
Copy link
Contributor

@ValuedMammal ValuedMammal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approach ACK

///
/// If the value is `Some`, it means we have incomplete data. We can only deduce that the
/// chain data is confirmed at a block equal to or lower than the block referenced by `A`.
transitively: Option<Txid>,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⛏️ I think calling the field either "child" or "descendant" would be best.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api A breaking API change module-blockchain
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

3 participants